package com.addcn.android.design591.comm;

import android.content.Context;

import com.addcn.android.design591.utils.AppUtils;
import com.addcn.android.design591.utils.T;

/**
 * Created by xuge on 2017/1/4.
 * 网络请求包装
 */

public class HttpUtils {

    private HttpUtils() {
        /* cannot be instantiated */
        throw new UnsupportedOperationException("cannot be instantiated");
    }


    /**
     * 包装网络请求头部
     *
     * @param context
     * @return
     */
    public static String getHttpHeader(Context context) {

        return "version/" + AppUtils.getBuildVersion()
                + " version_code/" + AppUtils.getBuildLevel()
                + " clients/" + "android"
                + " imei/" + AppUtils.getDeviceId(context)
                + " model/" + AppUtils.getPhoneModel();
    }
}
